import api from './api'

/**
 * 基本信息 
 */
export function getData(data) {
  return api.get('/merchant/home/getData', data, { login: true })
}

export function changeStatus(data) {
  return api.get('/merchant/home/changeStatus', data, { login: true })
}

export function check(data) {
  return api.get('/merchant/home/check', data, { login: true })
}

export function orderList(data) {
  return api.get('/merchant/order/list', data, { login: true })
}

export function orderSend(data) {
  return api.get('/merchant/order/send', data, { login: true })
}

export function orderTake(data) {
  return api.get('/merchant/order/take', data, { login: true })
}

export function orderRefund(data) {
  return api.get('/merchant/order/refund', data, { login: true })
}

export function orderDetail(data) {
  return api.get('/merchant/order/detail', data, { login: true })
}

export function addCard(data) {
  return api.post('/merchant/with/addCard', data, { login: true })
}

export function getCards(data) {
  return api.get('/merchant/with/getList', data, { login: true })
}

export function addWith(data) {
  return api.post('/merchant/with/createWithdrawal', data, { login: true })
}

export function getRevenue(data) {
  return api.get('/merchant/with/getRevenue', data, { login: true })
}

export function updateShop(data) {
  return api.post('/merchant/home/updateShop', data, { login: true })
}

export function deleteCard(data) {
  return api.get('/merchant/with/deleteCard', data, { login: true })
}

export function withdrawals(data) {
  return api.get('/merchant/with/withdrawals', data, { login: true })
}



